﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AbpApplication.AppServices
{
    public class ApiResponse
    {
        public ApiResponse(string msg, bool state, object? dto)
        {
            Msg = msg;
            Dto = dto;
            State = state;
        }

        public string Msg { get; set; }
        public object? Dto { get; set; }
        public bool State { get; set; }
    }

    public class ApiResponsePage
    {
        public ApiResponsePage(string msg, bool state, object? dto,long? count,long? pagecount)
        {
            Msg = msg;
            Dto = dto;
            State = state;
            Count = count;
            PageCount= pagecount;
        }

        public string Msg { get; set; }
        public object? Dto { get; set; }
        public bool State { get; set; }
        public long? Count { get; set; }
        public long? PageCount { get; set; }
    }

    public class ApiResponseCustom
    {
        public ApiResponseCustom(string code, string msg, object? data)
        {
            this.code = code;
            this.msg = msg;
            this.data = data;
        }   

        public string code { get; set; }
        public string msg { get; set; }
        public object data { get; set; }
    }
}

